package com.cssw.fyzb.core.dao.live;

import com.cssw.fyzb.core.model.dodb.CmfLivePk;

import java.util.Date;

public interface LivePkDao {

    CmfLivePk findById(Long pkId);

    /**
     * 申请PK
     *
     * @param fromAnchorId
     * @param fromLiveId
     * @param toAnchorId
     * @param toLiveId
     * @param beginTime
     * @return
     */
    Long addLivePk(Long fromAnchorId, Long fromLiveId, Long toAnchorId, Long toLiveId, Date beginTime);


    /**
     * 关闭直播PK
     *
     * @param id
     * @return
     */
    void closeLivePk(Long id);
}
